package com.liusj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

/**
 * Created by Administrator on 2018/4/17 0017.
 */
@SpringBootApplication
@MapperScan("com.liusj.dao.mapper")
public class SpringbootApplication extends SpringBootServletInitializer {
    public static void main(String[] args) throws Exception {
        ApplicationContext ctx = SpringApplication.run(SpringbootApplication.class, args);
        System.out.println("Let's inspect the beans provided by Spring Boot:");

/*        String[] beanNames = ctx.getBeanDefinitionNames();
        Arrays.sort(beanNames);
        for (String beanName : beanNames) {
            System.out.println(beanName);
        }
        */
    }

}
